package forms

type IDValidator struct {
	ID int32 `uri:"id" json:"id" binding:"required,number,gt=0"`
}

type ShopCartItem struct {
	GoodsId int32 `json:"goods" binding:"required"`
	Nums    int32 `json:"nums" binding:"required,min=1"`
}

type ShopCartItemUpdateForm struct {
	Nums    int32 `json:"nums" binding:"omitempty,min=1"`
	Checked *bool `json:"checked"`
}
